#include "stdafx.h"
#include "stdio.h"
#include "cv.h"
#include "highgui.h"

class CatchSkin
{

public:
	CatchSkin();
	void test(IplImage* I);
	IplImage* cvGetSubImage(IplImage *image, CvRect roi);
	void on_mouse( int event, int x, int y, int flags ,void* param) ;
	int runCatch();

public:
	IplImage* frame;
	int select_object;
	CvPoint origin;
	CvRect selection;

};